<% if (props.stylingPackage?.name === "stylesheet") { %>
import { StyleSheet, View } from 'react-native';
<% } else if (props.stylingPackage?.name === "unistyles") { %>
import { StyleSheet } from 'react-native-unistyles';
import { View } from 'react-native';
<% } else { %>
import { View } from 'react-native';
<% } %>
import { Stack, useLocalSearchParams } from 'expo-router';

import { Container } from '@/components/Container';
import { ScreenContent } from '@/components/ScreenContent';

export default function Details() {
  const { name } = useLocalSearchParams();

  return (
    <% if (props.stylingPackage?.name === "nativewind") { %>
      <View className={styles.container}>
    <% } else { %>
      <View style={styles.container}>
    <% } %>
      <Stack.Screen options={{ title: 'Details' }} />
      <Container>
        <ScreenContent path="screens/details.tsx" title={`Showing details for user ${name}`} />
      </Container>
    </View>
  );
}

<% if (props.stylingPackage?.name === "nativewind") { %>
const styles = {
  container: "flex flex-1 bg-white",
}
<% } else if (props.stylingPackage?.name === "stylesheet") { %>
const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'white',
  },
});
<% } else if (props.stylingPackage?.name === "unistyles") { %>
const styles = StyleSheet.create((theme) => ({
  container: {
    flex: 1,
    backgroundColor: 'white',
  },
}));
<% } %>